import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/unified-authentication-server/api/login',
    method: 'post',
    data
  })
}

export function getInfo() {
  return request({
    url: '/api/userInfo',
    method: 'get'
  })
}

export function logout() {
  return request({
    url: '/unified-authentication-server/api/logout',
    method: 'post'
  })
}

export function resetPwd(id, data) {
  return request({
    url: `/api/v1/resetPassword/${id}`,
    method: 'put',
    data
  })
}

